package com.simple.datax.flow.dao.ibatis.impl;
import com.simple.datax.flow.dao.ibatis.TaskMessageDao;
import com.simple.datax.flow.dao.ibatis.model.TaskDec;
import com.simple.datax.flow.dao.ibatis.model.TaskMessage;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class TaskMessageDaompl extends SqlMapClientDaoSupport implements
		TaskMessageDao {

	public TaskMessageDaompl() {
		super();
	}
	/**
	 * 插入对象全字段
	 */
	public void saveTaskMessage(TaskMessage taskMessage) {
		getSqlMapClientTemplate().insert("saveTaskMessage", taskMessage);
	}
	
	@Override
	public void saveTaskDec(TaskDec taskDec) {
		getSqlMapClientTemplate().insert("saveTaskDec", taskDec);
	}
	@Override
	public TaskDec getTaskDecByTaskid(String taskId) {
		TaskDec taskDec = null;
		taskDec = (TaskDec)this.getSqlMapClientTemplate().queryForObject("getTaskDecByTaskid",taskId);
		return taskDec;
	}
}